package com.liang.manage.auth.facade.server;


/**
 * @author 王华安
 * @date 2021-05-25 21:44
 */
public interface MailService {
    /**
     * 发送文本邮件
     *
     * @param to
     * @param subject
     * @param content
     */
    void sendSimpleMail(String to, String subject, String content);

    /**
     * 发送文本邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param cc
     */
    void sendSimpleMail(String to, String subject, String content, String... cc);

    /**
     * 发送HTML邮件
     *
     * @param to
     * @param subject
     * @param content
     * @throws Exception
     */
    void sendHtmlMail(String to, String subject, String content) throws Exception;

    /**
     * 发送HTML邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param cc
     */
    void sendHtmlMail(String to, String subject, String content, String... cc);

    /**
     * 发送带附件的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param filePath
     * @throws Exception
     */
    void sendAttachmentsMail(String to, String subject, String content, String filePath) throws Exception;

    /**
     * 发送带附件的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param filePath
     * @param cc
     */
    void sendAttachmentsMail(String to, String subject, String content, String filePath, String... cc);

    /**
     * 发送正文中有静态资源的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     * @throws Exception
     */
    void sendResourceMail(String to, String subject, String content, String rscPath, String rscId) throws Exception;

    /**
     * 发送正文中有静态资源的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     * @param cc
     */
    void sendResourceMail(String to, String subject, String content, String rscPath, String rscId, String... cc);
}
